# coding: utf-8
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QWidget, QVBoxLayout
from qfluentwidgets import SingleDirectionScrollArea


class ScrollAreaWidget(SingleDirectionScrollArea):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.widget = QWidget()
        self.setWidget(self.widget)
        self.setWidgetResizable(True)
        self.setStyleSheet('background-color: transparent; border: none;')
        self.verticalLayout = QVBoxLayout(self.widget)
        self.verticalLayout.setAlignment(Qt.AlignmentFlag.AlignTop)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.setViewportMargins(0, 10, 10, 10)
